﻿using DevExpress.XtraGrid.Demos.util;
using DXApplicationTangche.UC.成品出库单.service;
using DXApplicationTangche.UC.盘点.Service;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DXApplicationTangche.UC.盘点
{
    public partial class Form盘点处理选择 : DevExpress.XtraEditors.XtraForm
    {
        private List<StockInOutDetailDTO> stock正处理 = new List<StockInOutDetailDTO>();
        public List<StockInOutDetailDTO> stock已选择 = new List<StockInOutDetailDTO>();
        public Boolean if确认 = false;
        public Form盘点处理选择()
        {
            InitializeComponent();
        }
        public Form盘点处理选择(List<StockInOutDetailDTO> stock正处理)
        {
            InitializeComponent();
            foreach (StockInOutDetailDTO item in stock正处理)
            {
                this.stock正处理.Add(item);
            }
            this.gridControl盘点处理列表.DataSource = this.stock正处理;
        }

        private void simpleButton确认_Click(object sender, EventArgs e)
        {
            int[] rows = this.gridView盘点处理列表.GetSelectedRows();
            foreach(int i in rows)
            {
                this.stock已选择.Add(this.stock正处理[i]);
            }
            this.if确认 = true;
            this.Close();
        }

    }
}
